package com.shuiyun.jtt.message.jt808;

import com.shuiyun.jtt.anno.Message;
import com.shuiyun.jtt.enums.JT808;
import com.shuiyun.jtt.message.JTMessage;
import com.shuiyun.jtt.utils.codec.DataType;
import com.shuiyun.jtt.utils.codec.FieldValue;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author shuiyun
 * @program gateway
 * @description 消息透传
 * @date 2022-05-09 22:13
 **/
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
@Data
@Message(value = {JT808.数据上行透传0x0900,JT808.数据下行透传0x8900})
public class T0900 extends JTMessage {

    @FieldValue(type = DataType.BYTE,desc = "透传消息类型")
    private Integer type;

    @FieldValue(type = DataType.STRING,desc = "透传消息内容")
    private String content;
}
